\hypertarget{_m_d_s___r_t_u___fun_8c}{}\section{D\+:/\+Project/\+My\+Project1/\+X\+Tiny\+Modbus/\+S\+T\+M32f103zet6/\+Modbus/\+Modbus/\+Modbus\+R\+T\+U\+Slave/\+M\+D\+S\+\_\+\+R\+T\+U\+\_\+\+Fun.c File Reference}
\label{_m_d_s___r_t_u___fun_8c}\index{D\+:/\+Project/\+My\+Project1/\+X\+Tiny\+Modbus/\+S\+T\+M32f103zet6/\+Modbus/\+Modbus/\+Modbus\+R\+T\+U\+Slave/\+M\+D\+S\+\_\+\+R\+T\+U\+\_\+\+Fun.\+c@{D\+:/\+Project/\+My\+Project1/\+X\+Tiny\+Modbus/\+S\+T\+M32f103zet6/\+Modbus/\+Modbus/\+Modbus\+R\+T\+U\+Slave/\+M\+D\+S\+\_\+\+R\+T\+U\+\_\+\+Fun.\+c}}
{\ttfamily \#include \char`\"{}M\+D\+S\+\_\+\+R\+T\+U\+\_\+\+Fun.\+h\char`\"{}}\newline
{\ttfamily \#include \char`\"{}M\+D\+\_\+\+R\+T\+U\+\_\+\+C\+R\+C16.\+h\char`\"{}}\newline
{\ttfamily \#include \char`\"{}M\+D\+S\+\_\+\+R\+T\+U\+\_\+\+Serial.\+h\char`\"{}}\newline
{\ttfamily \#include \char`\"{}M\+D\+S\+\_\+\+R\+T\+U\+\_\+\+User\+\_\+\+Fun.\+h\char`\"{}}\newline
\subsection*{Functions}
\begin{DoxyCompactItemize}
\item 
void \mbox{\hyperlink{_m_d_s___r_t_u___fun_8c_aec40123a03256698b99819c04a7004e7}{M\+D\+S\+\_\+\+R\+T\+U\+\_\+\+Recv\+Byte}} (void $\ast$obj, \mbox{\hyperlink{_m_d___r_t_u___type_8h_adde6aaee8457bee49c2a92621fe22b79}{uint8}} byte)
\item 
void \mbox{\hyperlink{_m_d_s___r_t_u___fun_8c_ae4ec35926ca9e7e7800f8593225daf01}{M\+D\+S\+\_\+\+R\+T\+U\+\_\+\+Time\+Handler}} (void $\ast$obj)
\item 
\mbox{\hyperlink{_m_d___r_t_u___type_8h_adde6aaee8457bee49c2a92621fe22b79}{uint8}} \mbox{\hyperlink{_m_d_s___r_t_u___fun_8c_aa7d96e42624fcb2e07481ea0997e0d65}{M\+D\+S\+\_\+\+R\+T\+U\+\_\+\+Read\+Data\+Process}} (\mbox{\hyperlink{struct_p_modbus_s___r_t_u}{P\+Modbus\+S\+\_\+\+R\+TU}} p\+Modbus\+\_\+\+R\+TU, \mbox{\hyperlink{_m_d___r_t_u___type_8h_a05f6b0ae8f6a6e135b0e290c25fe0e4e}{uint16}} reg, \mbox{\hyperlink{_m_d___r_t_u___type_8h_a05f6b0ae8f6a6e135b0e290c25fe0e4e}{uint16}} reg\+Num, \mbox{\hyperlink{_m_d___r_t_u___type_8h_adde6aaee8457bee49c2a92621fe22b79}{uint8}} fun\+Code)
\item 
\mbox{\hyperlink{_m_d___r_t_u___type_8h_adde6aaee8457bee49c2a92621fe22b79}{uint8}} \mbox{\hyperlink{_m_d_s___r_t_u___fun_8c_ad5f51665170de1b3f185c5afc5c95706}{M\+D\+S\+\_\+\+R\+T\+U\+\_\+\+Write\+Data\+Process}} (\mbox{\hyperlink{struct_p_modbus_s___r_t_u}{P\+Modbus\+S\+\_\+\+R\+TU}} p\+Modbus\+\_\+\+R\+TU, \mbox{\hyperlink{_m_d___r_t_u___type_8h_a05f6b0ae8f6a6e135b0e290c25fe0e4e}{uint16}} reg, \mbox{\hyperlink{_m_d___r_t_u___type_8h_a05f6b0ae8f6a6e135b0e290c25fe0e4e}{uint16}} reg\+Num, \mbox{\hyperlink{_m_d___r_t_u___type_8h_adde6aaee8457bee49c2a92621fe22b79}{uint8}} fun\+Code, \mbox{\hyperlink{_m_d___r_t_u___type_8h_a05f6b0ae8f6a6e135b0e290c25fe0e4e}{uint16}} $\ast$data, \mbox{\hyperlink{_m_d___r_t_u___type_8h_adde6aaee8457bee49c2a92621fe22b79}{uint8}} byte\+Count)
\item 
void \mbox{\hyperlink{_m_d_s___r_t_u___fun_8c_a1930a714de78be09c1345c2c70778630}{M\+D\+S\+\_\+\+R\+T\+U\+\_\+\+Init}} (\mbox{\hyperlink{struct_p_modbus_s___r_t_u}{P\+Modbus\+S\+\_\+\+R\+TU}} p\+Modbus\+R\+TU, \mbox{\hyperlink{_m_d___r_t_u___tool_8h_abef481eadffaa05b26292b885515da04}{M\+D\+\_\+\+R\+T\+U\+\_\+\+Serial\+Init}} md\+R\+T\+U\+Serial\+Init\+Fun, \mbox{\hyperlink{_m_d___r_t_u___type_8h_adde6aaee8457bee49c2a92621fe22b79}{uint8}} salve\+Addr, \mbox{\hyperlink{_m_d___r_t_u___type_8h_a1134b580f8da4de94ca6b1de4d37975e}{uint32}} baud, \mbox{\hyperlink{_m_d___r_t_u___type_8h_adde6aaee8457bee49c2a92621fe22b79}{uint8}} data\+Bits, \mbox{\hyperlink{_m_d___r_t_u___type_8h_adde6aaee8457bee49c2a92621fe22b79}{uint8}} stop\+Bits, \mbox{\hyperlink{_m_d___r_t_u___type_8h_adde6aaee8457bee49c2a92621fe22b79}{uint8}} parity)
\item 
void \mbox{\hyperlink{_m_d_s___r_t_u___fun_8c_a94c8937f588b6b9a5bcd23fd99d1fbe4}{M\+D\+S\+\_\+\+R\+T\+U\+\_\+\+Set\+Write\+Listen\+Fun}} (\mbox{\hyperlink{struct_p_modbus_s___r_t_u}{P\+Modbus\+S\+\_\+\+R\+TU}} p\+Modbus\+\_\+\+R\+TU, \mbox{\hyperlink{_m_d_s___r_t_u___fun_8h_a9b7cc9da2b67c004a6604dbbbb180ae3}{M\+D\+S\+Write\+Funciton}} w\+Fun)
\item 
\mbox{\hyperlink{_m_d___r_t_u___type_8h_ae4cc35dcc70810fa972cc8a5185a28fa}{B\+O\+OL}} \mbox{\hyperlink{_m_d_s___r_t_u___fun_8c_a50d4ac77554555d5ebdb24629e5ebe45}{M\+D\+S\+\_\+\+R\+T\+U\+\_\+\+Add\+Map\+Item}} (\mbox{\hyperlink{struct_p_modbus_s___r_t_u}{P\+Modbus\+S\+\_\+\+R\+TU}} p\+Modbus\+R\+TU, \mbox{\hyperlink{struct_p_map_table_item}{P\+Map\+Table\+Item}} p\+Map\+Table\+Item)
\item 
void \mbox{\hyperlink{_m_d_s___r_t_u___fun_8c_a9f39ea8574be9451e181825a8f103b28}{M\+D\+S\+\_\+\+R\+T\+U\+\_\+\+Process}} (\mbox{\hyperlink{struct_p_modbus_s___r_t_u}{P\+Modbus\+S\+\_\+\+R\+TU}} p\+Modbus\+\_\+\+R\+TU)
\end{DoxyCompactItemize}


\subsection{Function Documentation}
\mbox{\Hypertarget{_m_d_s___r_t_u___fun_8c_a50d4ac77554555d5ebdb24629e5ebe45}\label{_m_d_s___r_t_u___fun_8c_a50d4ac77554555d5ebdb24629e5ebe45}} 
\index{M\+D\+S\+\_\+\+R\+T\+U\+\_\+\+Fun.\+c@{M\+D\+S\+\_\+\+R\+T\+U\+\_\+\+Fun.\+c}!M\+D\+S\+\_\+\+R\+T\+U\+\_\+\+Add\+Map\+Item@{M\+D\+S\+\_\+\+R\+T\+U\+\_\+\+Add\+Map\+Item}}
\index{M\+D\+S\+\_\+\+R\+T\+U\+\_\+\+Add\+Map\+Item@{M\+D\+S\+\_\+\+R\+T\+U\+\_\+\+Add\+Map\+Item}!M\+D\+S\+\_\+\+R\+T\+U\+\_\+\+Fun.\+c@{M\+D\+S\+\_\+\+R\+T\+U\+\_\+\+Fun.\+c}}
\subsubsection{\texorpdfstring{M\+D\+S\+\_\+\+R\+T\+U\+\_\+\+Add\+Map\+Item()}{MDS\_RTU\_AddMapItem()}}
{\footnotesize\ttfamily \mbox{\hyperlink{_m_d___r_t_u___type_8h_ae4cc35dcc70810fa972cc8a5185a28fa}{B\+O\+OL}} M\+D\+S\+\_\+\+R\+T\+U\+\_\+\+Add\+Map\+Item (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{struct_p_modbus_s___r_t_u}{P\+Modbus\+S\+\_\+\+R\+TU}}}]{p\+Modbus\+R\+TU,  }\item[{\mbox{\hyperlink{struct_p_map_table_item}{P\+Map\+Table\+Item}}}]{p\+Map\+Table\+Item }\end{DoxyParamCaption})}

\mbox{\Hypertarget{_m_d_s___r_t_u___fun_8c_a1930a714de78be09c1345c2c70778630}\label{_m_d_s___r_t_u___fun_8c_a1930a714de78be09c1345c2c70778630}} 
\index{M\+D\+S\+\_\+\+R\+T\+U\+\_\+\+Fun.\+c@{M\+D\+S\+\_\+\+R\+T\+U\+\_\+\+Fun.\+c}!M\+D\+S\+\_\+\+R\+T\+U\+\_\+\+Init@{M\+D\+S\+\_\+\+R\+T\+U\+\_\+\+Init}}
\index{M\+D\+S\+\_\+\+R\+T\+U\+\_\+\+Init@{M\+D\+S\+\_\+\+R\+T\+U\+\_\+\+Init}!M\+D\+S\+\_\+\+R\+T\+U\+\_\+\+Fun.\+c@{M\+D\+S\+\_\+\+R\+T\+U\+\_\+\+Fun.\+c}}
\subsubsection{\texorpdfstring{M\+D\+S\+\_\+\+R\+T\+U\+\_\+\+Init()}{MDS\_RTU\_Init()}}
{\footnotesize\ttfamily void M\+D\+S\+\_\+\+R\+T\+U\+\_\+\+Init (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{struct_p_modbus_s___r_t_u}{P\+Modbus\+S\+\_\+\+R\+TU}}}]{p\+Modbus\+R\+TU,  }\item[{\mbox{\hyperlink{_m_d___r_t_u___tool_8h_abef481eadffaa05b26292b885515da04}{M\+D\+\_\+\+R\+T\+U\+\_\+\+Serial\+Init}}}]{md\+R\+T\+U\+Serial\+Init\+Fun,  }\item[{\mbox{\hyperlink{_m_d___r_t_u___type_8h_adde6aaee8457bee49c2a92621fe22b79}{uint8}}}]{salve\+Addr,  }\item[{\mbox{\hyperlink{_m_d___r_t_u___type_8h_a1134b580f8da4de94ca6b1de4d37975e}{uint32}}}]{baud,  }\item[{\mbox{\hyperlink{_m_d___r_t_u___type_8h_adde6aaee8457bee49c2a92621fe22b79}{uint8}}}]{data\+Bits,  }\item[{\mbox{\hyperlink{_m_d___r_t_u___type_8h_adde6aaee8457bee49c2a92621fe22b79}{uint8}}}]{stop\+Bits,  }\item[{\mbox{\hyperlink{_m_d___r_t_u___type_8h_adde6aaee8457bee49c2a92621fe22b79}{uint8}}}]{parity }\end{DoxyParamCaption})}

\mbox{\Hypertarget{_m_d_s___r_t_u___fun_8c_a9f39ea8574be9451e181825a8f103b28}\label{_m_d_s___r_t_u___fun_8c_a9f39ea8574be9451e181825a8f103b28}} 
\index{M\+D\+S\+\_\+\+R\+T\+U\+\_\+\+Fun.\+c@{M\+D\+S\+\_\+\+R\+T\+U\+\_\+\+Fun.\+c}!M\+D\+S\+\_\+\+R\+T\+U\+\_\+\+Process@{M\+D\+S\+\_\+\+R\+T\+U\+\_\+\+Process}}
\index{M\+D\+S\+\_\+\+R\+T\+U\+\_\+\+Process@{M\+D\+S\+\_\+\+R\+T\+U\+\_\+\+Process}!M\+D\+S\+\_\+\+R\+T\+U\+\_\+\+Fun.\+c@{M\+D\+S\+\_\+\+R\+T\+U\+\_\+\+Fun.\+c}}
\subsubsection{\texorpdfstring{M\+D\+S\+\_\+\+R\+T\+U\+\_\+\+Process()}{MDS\_RTU\_Process()}}
{\footnotesize\ttfamily void M\+D\+S\+\_\+\+R\+T\+U\+\_\+\+Process (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{struct_p_modbus_s___r_t_u}{P\+Modbus\+S\+\_\+\+R\+TU}}}]{p\+Modbus\+\_\+\+R\+TU }\end{DoxyParamCaption})}

\mbox{\Hypertarget{_m_d_s___r_t_u___fun_8c_aa7d96e42624fcb2e07481ea0997e0d65}\label{_m_d_s___r_t_u___fun_8c_aa7d96e42624fcb2e07481ea0997e0d65}} 
\index{M\+D\+S\+\_\+\+R\+T\+U\+\_\+\+Fun.\+c@{M\+D\+S\+\_\+\+R\+T\+U\+\_\+\+Fun.\+c}!M\+D\+S\+\_\+\+R\+T\+U\+\_\+\+Read\+Data\+Process@{M\+D\+S\+\_\+\+R\+T\+U\+\_\+\+Read\+Data\+Process}}
\index{M\+D\+S\+\_\+\+R\+T\+U\+\_\+\+Read\+Data\+Process@{M\+D\+S\+\_\+\+R\+T\+U\+\_\+\+Read\+Data\+Process}!M\+D\+S\+\_\+\+R\+T\+U\+\_\+\+Fun.\+c@{M\+D\+S\+\_\+\+R\+T\+U\+\_\+\+Fun.\+c}}
\subsubsection{\texorpdfstring{M\+D\+S\+\_\+\+R\+T\+U\+\_\+\+Read\+Data\+Process()}{MDS\_RTU\_ReadDataProcess()}}
{\footnotesize\ttfamily \mbox{\hyperlink{_m_d___r_t_u___type_8h_adde6aaee8457bee49c2a92621fe22b79}{uint8}} M\+D\+S\+\_\+\+R\+T\+U\+\_\+\+Read\+Data\+Process (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{struct_p_modbus_s___r_t_u}{P\+Modbus\+S\+\_\+\+R\+TU}}}]{p\+Modbus\+\_\+\+R\+TU,  }\item[{\mbox{\hyperlink{_m_d___r_t_u___type_8h_a05f6b0ae8f6a6e135b0e290c25fe0e4e}{uint16}}}]{reg,  }\item[{\mbox{\hyperlink{_m_d___r_t_u___type_8h_a05f6b0ae8f6a6e135b0e290c25fe0e4e}{uint16}}}]{reg\+Num,  }\item[{\mbox{\hyperlink{_m_d___r_t_u___type_8h_adde6aaee8457bee49c2a92621fe22b79}{uint8}}}]{fun\+Code }\end{DoxyParamCaption})}

\mbox{\Hypertarget{_m_d_s___r_t_u___fun_8c_aec40123a03256698b99819c04a7004e7}\label{_m_d_s___r_t_u___fun_8c_aec40123a03256698b99819c04a7004e7}} 
\index{M\+D\+S\+\_\+\+R\+T\+U\+\_\+\+Fun.\+c@{M\+D\+S\+\_\+\+R\+T\+U\+\_\+\+Fun.\+c}!M\+D\+S\+\_\+\+R\+T\+U\+\_\+\+Recv\+Byte@{M\+D\+S\+\_\+\+R\+T\+U\+\_\+\+Recv\+Byte}}
\index{M\+D\+S\+\_\+\+R\+T\+U\+\_\+\+Recv\+Byte@{M\+D\+S\+\_\+\+R\+T\+U\+\_\+\+Recv\+Byte}!M\+D\+S\+\_\+\+R\+T\+U\+\_\+\+Fun.\+c@{M\+D\+S\+\_\+\+R\+T\+U\+\_\+\+Fun.\+c}}
\subsubsection{\texorpdfstring{M\+D\+S\+\_\+\+R\+T\+U\+\_\+\+Recv\+Byte()}{MDS\_RTU\_RecvByte()}}
{\footnotesize\ttfamily void M\+D\+S\+\_\+\+R\+T\+U\+\_\+\+Recv\+Byte (\begin{DoxyParamCaption}\item[{void $\ast$}]{obj,  }\item[{\mbox{\hyperlink{_m_d___r_t_u___type_8h_adde6aaee8457bee49c2a92621fe22b79}{uint8}}}]{byte }\end{DoxyParamCaption})}

\mbox{\Hypertarget{_m_d_s___r_t_u___fun_8c_a94c8937f588b6b9a5bcd23fd99d1fbe4}\label{_m_d_s___r_t_u___fun_8c_a94c8937f588b6b9a5bcd23fd99d1fbe4}} 
\index{M\+D\+S\+\_\+\+R\+T\+U\+\_\+\+Fun.\+c@{M\+D\+S\+\_\+\+R\+T\+U\+\_\+\+Fun.\+c}!M\+D\+S\+\_\+\+R\+T\+U\+\_\+\+Set\+Write\+Listen\+Fun@{M\+D\+S\+\_\+\+R\+T\+U\+\_\+\+Set\+Write\+Listen\+Fun}}
\index{M\+D\+S\+\_\+\+R\+T\+U\+\_\+\+Set\+Write\+Listen\+Fun@{M\+D\+S\+\_\+\+R\+T\+U\+\_\+\+Set\+Write\+Listen\+Fun}!M\+D\+S\+\_\+\+R\+T\+U\+\_\+\+Fun.\+c@{M\+D\+S\+\_\+\+R\+T\+U\+\_\+\+Fun.\+c}}
\subsubsection{\texorpdfstring{M\+D\+S\+\_\+\+R\+T\+U\+\_\+\+Set\+Write\+Listen\+Fun()}{MDS\_RTU\_SetWriteListenFun()}}
{\footnotesize\ttfamily void M\+D\+S\+\_\+\+R\+T\+U\+\_\+\+Set\+Write\+Listen\+Fun (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{struct_p_modbus_s___r_t_u}{P\+Modbus\+S\+\_\+\+R\+TU}}}]{p\+Modbus\+\_\+\+R\+TU,  }\item[{\mbox{\hyperlink{_m_d_s___r_t_u___fun_8h_a9b7cc9da2b67c004a6604dbbbb180ae3}{M\+D\+S\+Write\+Funciton}}}]{w\+Fun }\end{DoxyParamCaption})}

\mbox{\Hypertarget{_m_d_s___r_t_u___fun_8c_ae4ec35926ca9e7e7800f8593225daf01}\label{_m_d_s___r_t_u___fun_8c_ae4ec35926ca9e7e7800f8593225daf01}} 
\index{M\+D\+S\+\_\+\+R\+T\+U\+\_\+\+Fun.\+c@{M\+D\+S\+\_\+\+R\+T\+U\+\_\+\+Fun.\+c}!M\+D\+S\+\_\+\+R\+T\+U\+\_\+\+Time\+Handler@{M\+D\+S\+\_\+\+R\+T\+U\+\_\+\+Time\+Handler}}
\index{M\+D\+S\+\_\+\+R\+T\+U\+\_\+\+Time\+Handler@{M\+D\+S\+\_\+\+R\+T\+U\+\_\+\+Time\+Handler}!M\+D\+S\+\_\+\+R\+T\+U\+\_\+\+Fun.\+c@{M\+D\+S\+\_\+\+R\+T\+U\+\_\+\+Fun.\+c}}
\subsubsection{\texorpdfstring{M\+D\+S\+\_\+\+R\+T\+U\+\_\+\+Time\+Handler()}{MDS\_RTU\_TimeHandler()}}
{\footnotesize\ttfamily void M\+D\+S\+\_\+\+R\+T\+U\+\_\+\+Time\+Handler (\begin{DoxyParamCaption}\item[{void $\ast$}]{obj }\end{DoxyParamCaption})}

\mbox{\Hypertarget{_m_d_s___r_t_u___fun_8c_ad5f51665170de1b3f185c5afc5c95706}\label{_m_d_s___r_t_u___fun_8c_ad5f51665170de1b3f185c5afc5c95706}} 
\index{M\+D\+S\+\_\+\+R\+T\+U\+\_\+\+Fun.\+c@{M\+D\+S\+\_\+\+R\+T\+U\+\_\+\+Fun.\+c}!M\+D\+S\+\_\+\+R\+T\+U\+\_\+\+Write\+Data\+Process@{M\+D\+S\+\_\+\+R\+T\+U\+\_\+\+Write\+Data\+Process}}
\index{M\+D\+S\+\_\+\+R\+T\+U\+\_\+\+Write\+Data\+Process@{M\+D\+S\+\_\+\+R\+T\+U\+\_\+\+Write\+Data\+Process}!M\+D\+S\+\_\+\+R\+T\+U\+\_\+\+Fun.\+c@{M\+D\+S\+\_\+\+R\+T\+U\+\_\+\+Fun.\+c}}
\subsubsection{\texorpdfstring{M\+D\+S\+\_\+\+R\+T\+U\+\_\+\+Write\+Data\+Process()}{MDS\_RTU\_WriteDataProcess()}}
{\footnotesize\ttfamily \mbox{\hyperlink{_m_d___r_t_u___type_8h_adde6aaee8457bee49c2a92621fe22b79}{uint8}} M\+D\+S\+\_\+\+R\+T\+U\+\_\+\+Write\+Data\+Process (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{struct_p_modbus_s___r_t_u}{P\+Modbus\+S\+\_\+\+R\+TU}}}]{p\+Modbus\+\_\+\+R\+TU,  }\item[{\mbox{\hyperlink{_m_d___r_t_u___type_8h_a05f6b0ae8f6a6e135b0e290c25fe0e4e}{uint16}}}]{reg,  }\item[{\mbox{\hyperlink{_m_d___r_t_u___type_8h_a05f6b0ae8f6a6e135b0e290c25fe0e4e}{uint16}}}]{reg\+Num,  }\item[{\mbox{\hyperlink{_m_d___r_t_u___type_8h_adde6aaee8457bee49c2a92621fe22b79}{uint8}}}]{fun\+Code,  }\item[{\mbox{\hyperlink{_m_d___r_t_u___type_8h_a05f6b0ae8f6a6e135b0e290c25fe0e4e}{uint16}} $\ast$}]{data,  }\item[{\mbox{\hyperlink{_m_d___r_t_u___type_8h_adde6aaee8457bee49c2a92621fe22b79}{uint8}}}]{byte\+Count }\end{DoxyParamCaption})}

